package cn.internship.modules.manage.service.impl;

import cn.internship.modules.manage.dao.StatDao;
import cn.internship.modules.manage.entity.vo.DeptTopList;
import cn.internship.modules.manage.entity.vo.IndustyTopList;
import cn.internship.modules.manage.entity.vo.MajorTopList;
import cn.internship.modules.manage.service.StatService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author zwr
 * @version 1.0
 * @description TODO
 * @date 2023/3/4 17:41
 */
@Service
public class StatServiceImpl implements StatService {

    @Resource
    private StatDao statDao;

    @Override
    public List<MajorTopList> majorTop5() {
        return statDao.queryMajorTop5();
    }

    @Override
    public List<DeptTopList> deptTop5() {
        return statDao.queryDeptTop5();
    }

    @Override
    public List<IndustyTopList> industyTop10() {
        return statDao.queryIndustyTop10();
    }
}
